package net.xiduth.game.player.dialogues;

import net.xiduth.game.World;
import net.xiduth.game.WorldObject;

public class PartyRoomLever extends Dialogue {

        public PartyRoomLever() {
        }

        @Override
        public void start() {
                stage = 1;
                sendOptionsDialogue("Wähle eine Option", "Ballons",
                                "Nothing", "Nothing");

        }

        @Override
        public void run(int interfaceId, int componentId) {
                if (stage == 1) {
                        if (componentId == OPTION_1) {
                        World.spawnObject(new WorldObject(115, 10, 0, 3049, 3381, 0), true);
                        World.spawnObject(new WorldObject(116, 10, 0, 3045, 3380, 0), true);
                        World.spawnObject(new WorldObject(117, 10, 0, 3043, 3383, 0), true);
                        World.spawnObject(new WorldObject(118, 10, 0, 3041, 3380, 0), true);
                        World.spawnObject(new WorldObject(119, 10, 0, 3039, 3378, 0), true);
                        World.spawnObject(new WorldObject(120, 10, 0, 3041, 3377, 0), true);
                        World.spawnObject(new WorldObject(121, 10, 0, 3041, 3376, 0), true);
                        World.spawnObject(new WorldObject(122, 10, 0, 3042, 3373, 0), true);
                        World.spawnObject(new WorldObject(115, 10, 0, 3045, 3376, 0), true);
                        World.spawnObject(new WorldObject(116, 10, 0, 3046, 3375, 0), true);
                        World.spawnObject(new WorldObject(117, 10, 0, 3049, 3376, 0), true);
                        World.spawnObject(new WorldObject(118, 10, 0, 3052, 3378, 0), true);
                        World.spawnObject(new WorldObject(119, 10, 0, 3050, 3379, 0), true);
                        World.spawnObject(new WorldObject(120, 10, 0, 3046, 3382, 0), true);
                        World.spawnObject(new WorldObject(121, 10, 0, 3044, 3377, 0), true);
                        World.spawnObject(new WorldObject(122, 10, 0, 3043, 3375, 0), true);
                        World.spawnObject(new WorldObject(115, 10, 0, 3047, 3374, 0), true);
                        World.spawnObject(new WorldObject(116, 10, 0, 3050, 3374, 0), true);
                        World.spawnObject(new WorldObject(117, 10, 0, 3051, 3377, 0), true);
                        World.spawnObject(new WorldObject(118, 10, 0, 3047, 3379, 0), true);
                        World.spawnObject(new WorldObject(119, 10, 0, 3048, 3382, 0), true);
                        World.spawnObject(new WorldObject(120, 10, 0, 3045, 3383, 0), true);
                        World.spawnObject(new WorldObject(121, 10, 0, 3043, 3381, 0), true);
                        World.spawnObject(new WorldObject(122, 10, 0, 3039, 3380, 0), true);
                        World.spawnObject(new WorldObject(115, 10, 0, 3041, 3378, 0), true);
                        World.spawnObject(new WorldObject(116, 10, 0, 3038, 3374, 0), true);
                        World.spawnObject(new WorldObject(117, 10, 0, 3040, 3377, 0), true);
                        World.spawnObject(new WorldObject(118, 10, 0, 3041, 3374, 0), true);
                        World.spawnObject(new WorldObject(119, 10, 0, 3047, 3377, 0), true);
                        World.spawnObject(new WorldObject(120, 10, 0, 3045, 3382, 0), true);
                        World.spawnObject(new WorldObject(121, 10, 0, 3050, 3383, 0), true);
                        World.spawnObject(new WorldObject(122, 10, 0, 3051, 3380, 0), true);
                        end();
                        } else if (componentId == OPTION_2) {
                                end();
                        } else if (componentId == OPTION_3) {
                                end();
                }

        }
}


        @Override
        public void finish() {
        }

}